import VueRouter from 'vue-router'
import Vue from 'vue'
Vue.use(VueRouter)

import home from './components/HomeContainer.vue'
import member from './components/MemberContainer.vue'
import shopcar from './components/ShopcarContainer.vue'
import search from './components/SearchContainer.vue'
// 3. 创建路由对象
var router = new VueRouter({
  routes: [
    {path:'/home',component:home},
    {path:'/',component:home},
    {path:'/member',component:member},
    {path:'/shopcar',component:shopcar},
    {path:'/search',component:search},
  ],
  linkActiveClass:'mui-active'
})
                                                                                                                                                                                                                                                   
// 把路由对象暴露出去
export default router